<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html 
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">


    <h:head>
        <title>IPTU</title>

    </h:head>
    <h:body>
        <style>
            .ui-datatable .ui-column-filter {
                display: block;
                margin: auto;
                width: 90%;
            }
        </style>
        <h:form prependId="false">

        </h:form>

        <h:form id="conForm" >

            <p:panel id="resultPanel" >

                <p:dataTable var="b" value="#{managerBci.bci}" 
                             rows="15" paginator="true"  
                             paginatorPosition="bottom"
                             filteredValue="#{managerBci.bcifilter}"
                             emptyMessage="Nenhum registro">  
                    <f:facet name="header">
                        BCI
                    </f:facet>
                    <p:column headerText="ID">  
                        <h:outputText value="#{b.id}"/>
                    </p:column>  
                    <p:column headerText="Insc" filterBy="#{b.inscricao}" filterMatchMode="startsWith">  
                        <h:outputText value="#{b.inscricao}"/>
                    </p:column>  
                    <p:column headerText="Contribuinte" width="300" style="white-space: pre-wrap;"  filterBy="#{b.nome}" filterMatchMode="startsWith">  
                        <h:outputText value="#{b.nome}"/>
                    </p:column>
                    <p:column headerText="Logradouro" style="white-space: pre-wrap;" filterBy="#{b.logradouro}" filterMatchMode="startsWith" >  
                        <h:outputText value="#{b.logradouro}"/>
                    </p:column>
                    <p:column headerText="Nº" width="50" filterBy="#{b.numero}" filterMatchMode="startsWith">  
                        <h:outputText value="#{b.numero}"/>
                    </p:column>
                    <p:column headerText="Bairro" filterBy="#{b.bairro}" filterMatchMode="contains">  
                        <h:outputText value="#{b.bairro}"/>
                    </p:column>
                    <p:column rendered="false" headerText="vvt" filterBy="#{b.iptu.vvt}" filterMatchMode="contains">  
                        <h:outputText value="#{b.iptu.vvt}"/>
                    </p:column>
                    <p:column rendered="false"  headerText="vve" filterBy="#{b.iptu.vve}" filterMatchMode="contains">  
                        <h:outputText value="#{b.iptu.vve}"/>
                    </p:column>
                    <p:column rendered="false"  headerText="vvi" filterBy="#{b.iptu.vvi}" filterMatchMode="contains">  
                        <h:outputText value="#{b.iptu.vvi}"/>
                    </p:column>
                    <p:column  headerText="vvt" filterBy="#{b.iptuAntigo.vvt}" filterMatchMode="contains">  
                        <h:outputText value="#{b.iptuAntigo.vvt}"/>
                    </p:column>
                    <p:column   headerText="vve" filterBy="#{b.iptuAntigo.vve}" filterMatchMode="contains">  
                        <h:outputText value="#{b.iptuAntigo.vve}"/>
                    </p:column>
                    
                    <p:column headerText="valor" filterBy="#{b.iptuAntigo.valorBaseCorrigido}" filterMatchMode="contains">  
                        <h:outputText value="R$ #{b.iptuAntigo.valorBaseCorrigido}"/>
                    </p:column>
                    <p:column headerText="valor1" filterBy="#{b.iptu.valorBaseCorrigido}" filterMatchMode="contains">  
                        <h:outputText value="R$ #{b.iptu.valorBaseCorrigido}"/>
                    </p:column>
                    <p:column  headerText="vvt" filterBy="#{b.iptuSemCorrecao.vvt}" filterMatchMode="contains">  
                        <h:outputText value="#{b.iptuSemCorrecao.vvt}"/>
                    </p:column>
                    <p:column   headerText="vve" filterBy="#{b.iptuSemCorrecao.vve}" filterMatchMode="contains">  
                        <h:outputText value="#{b.iptuSemCorrecao.vve}"/>
                    </p:column>
                    <p:column rendered="false"  headerText="vvi" filterBy="#{b.iptuSemCorrecao.vvi}" filterMatchMode="contains">  
                        <h:outputText value="#{b.iptuSemCorrecao.vvi}"/>
                    </p:column>
                    <p:column headerText="valor2" filterBy="#{b.iptuSemCorrecao.valorBaseCorrigido}" filterMatchMode="contains">  
                        <h:outputText value="R$ #{b.iptuSemCorrecao.valorBaseCorrigido}"/>
                    </p:column>


                </p:dataTable> 

            </p:panel>
        </h:form>
    </h:body>
</html>